package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class LxmShopErrorRowMapper implements RowMapper<LxmShopError>{

	@Override
	public LxmShopError mapRow(ResultSet rs, int rowNum) throws SQLException {
		LxmShopError  lj= new LxmShopError();
		lj.setId(rs.getInt("id"));
		lj.setRoad_name(rs.getString("road_name"));
		lj.setAddress(rs.getString("address"));
		lj.setX(rs.getString("x"));
		lj.setY(rs.getString("y"));
		lj.setNumber(rs.getString("number"));
		lj.setContent(rs.getString("contenttext"));
		lj.setUnit_name(rs.getString("unit_name"));
		lj.setLegal_person(rs.getString("legal_person"));
		lj.setLegal_phone(rs.getString("legal_phone"));
		lj.setName(rs.getString("name"));
		lj.setPhone(rs.getString("phone"));
		lj.setNum(rs.getString("num"));
		lj.setClassify(rs.getString("classifytext"));
		lj.setStatus(rs.getString("status"));
		lj.setAffiliation(rs.getString("affiliation"));
		lj.setRectify_number(rs.getString("rectify_number"));
		return lj;
	}

}
